from django.urls import path
from rest_framework.routers import SimpleRouter, DefaultRouter
from users.views import UserView


# 获取路由对象
router = SimpleRouter()
# 注册资源
router.register('', UserView)
# 生成地址
# /api/user/     GET/POST
# /api/user/id/    PUT/PATCH/DELETE

urlpatterns = [
]

urlpatterns += router.urls
